<?php
class Account_model extends CI_Model{
	
	function validate(){
		$this->db->where('username',$this->input->post('username'));
		$this->db->where('password', md5($this->input->post('password')));
		
		$query = $this->db->get('active_account');
		
		if ($query->num_rows() == 1){
			return true;
		}
	
	}

}